<?php
/* SVN FILE: $Id: cp_skin_group_form_ibmarket.php 157 2009-08-06 00:50:14Z supersmashbrothers $ */
/**
* ibMarket 2
* IP.Board 3.0
* ibMarket member editing html
*
* @author $Author: supersmashbrothers $
* @copyright $Copyright$
* @version $Revision: 157 $
* @lastrevision $Date: 2009-08-06 00:50:14 +0000 (Thu, 06 Aug 2009) $
* @modifiedby $LastChangedBy: supersmashbrothers $
* @lastmodified $LastChangedDate: 2009-08-06 00:50:14 +0000 (Thu, 06 Aug 2009) $
* @filesource $URL: http://ipb-ibmarket.googlecode.com/svn/ibmarket2/trunk/admin/applications_addon/other/ibmarket/skin_cp/cp_skin_group_form_ibmarket.php $
*/

class cp_skin_group_form_ibmarket extends output
{

/**
 * Prevent our main destructor being called by this class
 *
 * @access	public
 * @return	void
 */
public function __destruct()
{
}


/**
 * Show forums group form
 *
 * @access	public
 * @param	array 	Group data
 * @param	string	Tab ID
 * @return	string	HTML
 */
public function acp_group_form_main( $group, $tabId ) {

$form							= array();
$form['g_market_tax']		= $this->registry->output->formSimpleInput( "g_market_tax", $group['g_market_tax'] );
$form['g_market_discount']	= $this->registry->output->formSimpleInput( "g_market_discount", $group['g_market_discount'] );
$form['g_market_view']		= $this->registry->output->formYesNo( "g_market_view", $group['g_market_view'] );
$form['g_market_use']		= $this->registry->output->formYesNo( "g_market_use", $group['g_market_use'] );

$IPBHTML = "";

$IPBHTML .= <<<EOF
<div id='tabpane-GROUPS|ibmarket'>
	<div>
		<table class='form_table alternate_rows double_pad' cellspacing='0'>
			<tr>
				<th colspan='2' class='head'><strong>{$this->settings['market_name']}</strong></th>
			</tr>
			<tr>
		 		<td>
					<label>{$this->lang->words['group_market_view']}</label>
				</td>
				<td>
		 			{$form['g_market_view']}
				</td>
		 	</tr>
			<tr>
		 		<td>
					<label>{$this->lang->words['group_market_use']}</label>
				</td>
				<td>
		 			{$form['g_market_use']}
				</td>
		 	</tr>
			<tr>
		 		<td>
					<label>{$this->lang->words['group_market_tax']}</label>
				</td>
				<td>
		 			{$form['g_market_tax']}%
				</td>
		 	</tr>
			<tr>
		 		<td>
					<label>{$this->lang->words['group_market_discount']}</label>
				</td>
				<td>
		 			{$form['g_market_discount']}%
				</td>
		 	</tr>
		</table>
	</div>
</div>

EOF;

return $IPBHTML;
}

/**
 * Display forum group form tabs
 *
 * @access	public
 * @param	array 	Group data
 * @param	string	Tab id
 * @return	string	HTML
 */
public function acp_group_form_tabs( $group ) {

$IPBHTML = "";

$IPBHTML .= <<<EOF
	<li id='tabtab-GROUPS|ibmarket' class=''>{$this->settings['market_name']}</li>
EOF;

return $IPBHTML;
}

}